package com.team.panicgame.models.mauricio;

import java.util.Map;

import com.badlogic.gdx.audio.Sound;

public class AssetLibrary {
	public Map<String, Sound> sounds;
	
	public AssetLibrary(Map<String, Sound> sounds) {
		this.sounds = sounds;
	}
	
	public void play(String key) {
		sounds.get(key).play(1f);
	}
	
	public void dispose() {
		for (Map.Entry<String, Sound> sound : sounds.entrySet()) {
			sounds.get(sound.getKey()).dispose();
		}
	}
}
